package com.ck.demo.dao;

import com.ck.demo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserDao {
    //根据用户名和密码查询用户
    @Select("select * from t_user where username=#{username} and password=#{password}")
    User queryUser(@Param("username") String username,@Param("password")String password);
}
